package com.cigs.wcs00a.opcua.selfunion;



import com.cigs.wcs00a.opcua.selfunion.Enum.PLCVar;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2020/7/20 8:52
 */
public class Test3 {
    public static void main(String[] args) {
        List<String> as = new ArrayList<>();
        as.add("1");
        as.add("2");
        as.add("3");

        HashMap<String,String> asas = new HashMap<>();
        asas.put("1","a");
        asas.put("2","b");
        asas.put("3","c");

        String[] ss = new String[3];
        ss[0] = "a";
        ss[1] = "b";
        ss[2] = "c";

        System.out.println("as:"+asas.getClass().isArray());
        System.out.println("asas:"+asas.getClass().isArray());
        System.out.println("ss:"+ Arrays.asList(ss));
        List<Object> list = new ArrayList<>();
        list = Arrays.asList(ss);
        System.out.println("list"+list);

        System.out.println("INT32_3:"+ PLCVar.valueOf("INT32_3").getIdentifier());

        String newValue = "6,7,8,9,10#QUByte";
        String[] split = newValue.split("#");
        System.out.println(split);

        Object[] b = te();
        System.out.println(b);
    }

    public static Object[] te(){
        Object[] as = new Object[3];
        as[0] = true;
        as[1] = true;
        as[2] = true;
        return as;
    }
}
